import * as Joi from '@hapi/joi';

export const AppConfigValidationSchema = {
  API_HOST: Joi.string(),
  API_PORT: Joi.number().default(3005),
  API_ACCESS_TOKEN_SECRET: Joi.string().default('yhding'),
  API_ACCESS_TOKEN_TTL_IN_MINUTES: Joi.number().default(60),
  API_ACCESS_TOKEN_HEADER: Joi.string().default('x-api-token'),
  API_LOGIN_USERNAME_FIELD: Joi.string().default('email'),
  API_LOGIN_PASSWORD_FIELD: Joi.string().default('password'),
  API_LOG_ENABLE: Joi.boolean().default(true),

  DB_HOST: Joi.string().default('localhost'),
  DB_PORT: Joi.number().default('5454'),
  DB_USERNAME: Joi.string().default('iposter'),
  DB_PASSWORD: Joi.string().default('souQu6ienug0ash9eeY9'),
  DB_NAME: Joi.string().default('iposter'),
  DB_LOG_ENABLE: Joi.boolean().default('true'),

  FILE_STORAGE_ENDPOINT: Joi.string().default('localhost'),
  FILE_STORAGE_PORT: Joi.number().default('9000'),
  FILE_STORAGE_ACCESS_KEY: Joi.string().default('aid6jaeng6IeWahv6hae'),
  FILE_STORAGE_SECRET_KEY: Joi.string().default('ri5aX5Meishi9haihooB'),
  FILE_STORAGE_USE_SSL: Joi.boolean().default(false),
  FILE_STORAGE_BASE_PATH: Joi.string().default('http://localhost:9000'),
  FILE_STORAGE_IMAGE_BUCKET: Joi.string().default('images'),
  FILE_STORAGE_IMAGE_EXT: Joi.string().default('png'),
  FILE_STORAGE_IMAGE_MIMETYPE: Joi.string().default('image/png'),
};
